import 'package:flutter_crud_test_amir_rabbani/core/resource/data_state.dart';
import 'package:flutter_crud_test_amir_rabbani/core/resource/use_case.dart';
import 'package:flutter_crud_test_amir_rabbani/data/local/my_database.dart';
import 'package:flutter_crud_test_amir_rabbani/data/repositories/customer_repository.dart';

class ReadCustomerUseCase extends StreamUseCase<NoParams> {
  CustomerRepository repository;

  ReadCustomerUseCase(this.repository);

  @override
  Stream call(NoParams param) {
    return repository.read();
  }
}
